/*********************
* Author:Dzlua
* QQ:505544956
* time:2016/12/03
*/
#ifndef __EDUI_LUAPROGRESS_H__
#define __EDUI_LUAPROGRESS_H__

#include "../../controls/Progress.h"
#include "LuaControl.h"

#ifdef EDUI_USE_LUAPLUS

EDUI_NAMESPACE_BEGIN

class LuaProgress : public LuaControl
{
public:
    LuaProgress(Progress* progress);
    virtual ~LuaProgress();
    static void* GetInterface(void* data);
    virtual void Release();
    static void Register(LuaState *L);
public:
    bool SetValue(int val);
    int GetValue();
    void SetMaxValue(int val);
    int GetMaxValue();
    void SetMinValue(int val);
    int GetMinValue();
    void SetType(const char* type);
    const char* GetType();
    bool SetBarInset(int l, int t, int r, int b);
    int GetBarInset(LuaState *L);
    int GetBarRect(LuaState *L);
    int GetBarBkRect(LuaState *L);

};

EDUI_NAMESPACE_END

#endif
#endif